package deweb.cimaplanning.reports.corn_position;

import java.util.Vector;

public class MonthlyPeriod {
	//datos del periodo
	protected int monthPeriodVersionId;
	protected int monthPeriodId;
	protected String shortName;
	protected int month;
	protected int year;
	
	//tipos de transporte (clase Transports)
	protected Vector transports;

	public MonthlyPeriod() {
	}

	/**
	 * @return the monthPeriodVersionId
	 */
	public int getMonthPeriodVersionId() {
		return monthPeriodVersionId;
	}

	/**
	 * @param monthPeriodVersionId the monthPeriodVersionId to set
	 */
	public void setMonthPeriodVersionId(int monthPeriodVersionId) {
		this.monthPeriodVersionId = monthPeriodVersionId;
	}

	/**
	 * @return the monthPeriodId
	 */
	public int getMonthPeriodId() {
		return monthPeriodId;
	}

	/**
	 * @param monthPeriodId the monthPeriodId to set
	 */
	public void setMonthPeriodId(int monthPeriodId) {
		this.monthPeriodId = monthPeriodId;
	}

	/**
	 * @return the shortName
	 */
	public String getShortName() {
		return shortName;
	}

	/**
	 * @param shortName the shortName to set
	 */
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	/**
	 * @return the month
	 */
	public int getMonth() {
		return month;
	}

	/**
	 * @param month the month to set
	 */
	public void setMonth(int month) {
		this.month = month;
	}

	/**
	 * @return the year
	 */
	public int getYear() {
		return year;
	}

	/**
	 * @param year the year to set
	 */
	public void setYear(int year) {
		this.year = year;
	}

	/**
	 * @return the transports
	 */
	public Vector getTransports() {
		return transports;
	}

	/**
	 * @param transports the transports to set
	 */
	public void setTransports(Vector transports) {
		this.transports = transports;
	}
	
	/**
	 * @param po the PurchaseOrder to add
	 */
	public void addTransports(Transports t){
		this.transports.addElement(t);
	}
	
	public void trimToSizeTransports(){
		this.transports.trimToSize();
	}
	
	public void newTransports(int initialCapacity, int capacityIncrement){
		this.transports = new Vector(initialCapacity, capacityIncrement);
	}	
}
